//
//  MainViewController.m
//  ArtCircle
//
//  Created by sunbin on 2017/5/20.
//  Copyright © 2017年 HuaYue. All rights reserved.
//

#import "MainViewController.h"

#import "ViewController.h"


#import "ArtCircleViewController.h"

@interface MainViewController()
@end

@implementation MainViewController
+ (ESTabBarController *)bounceBarItems {

    ESTabBarController *tabBarController = [[ESTabBarController alloc] init];
    
    tabBarController.tabBar.backgroundImage = [[UIColor colorWithRed:1 green:1 blue:1 alpha:0] imageWithColor];
    
    tabBarController.tabBar.shadowImage = [UIImage new];
    
    
    
    ArtCircleViewController *artCircle = [[ArtCircleViewController alloc] init];
    
    artCircle.style  = SegmentHeadStyleLine;
    artCircle.layout = MLMSegmentLayoutCenter;
    
    
    NavigationController *v1 = [[NavigationController alloc] initWithRootViewController:artCircle];
        
    NavigationController *v2 = [[NavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];
    NavigationController *v3 = [[NavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];
    NavigationController *v4 = [[NavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];
    NavigationController *v5 = [[NavigationController alloc] initWithRootViewController:[[ViewController alloc] init]];


    
   v1.tabBarItem =  [[ESTabBarItem alloc] init: [[ExampleBouncesContentView alloc] init] title:@"Home" image:[UIImage imageNamed:@"yiquanNomal"] selectedImage:[UIImage imageNamed:@"yiquanSelect"] tag:0];
    
   v2.tabBarItem =  [[ESTabBarItem alloc] init: [[ExampleBouncesContentView alloc] init] title:@"Home" image:[UIImage imageNamed:@"dingzhiNomal"] selectedImage:[UIImage imageNamed:@"dingzhiSelect"] tag:1];

   v3.tabBarItem =  [[ESTabBarItem alloc] init: [[ExampleBouncesContentView alloc] init] title:@"Home" image:[UIImage imageNamed:@"zhiboNomal"] selectedImage:[UIImage imageNamed:@"zhiboSelect"] tag:2];

   v4.tabBarItem =  [[ESTabBarItem alloc] init: [[ExampleBouncesContentView alloc] init] title:@"Home" image:[UIImage imageNamed:@"yitouNomal"] selectedImage:[UIImage imageNamed:@"yitouSelect"] tag:3];

   v5.tabBarItem =  [[ESTabBarItem alloc] init: [[ExampleBouncesContentView alloc] init] title:@"Home" image:[UIImage imageNamed:@"liaotianNomal"] selectedImage:[UIImage imageNamed:@"liaotianSelect"] tag:4];

    


    tabBarController.viewControllers = @[v1, v2, v3, v4 ,v5];
    
    tabBarController.title = @"Example";
    
   return tabBarController;

    
}





@end
